export default {
  createAdType: {//创建广告类型
    url: '/activity/adType/create',
    require: ['token', 'clientid','name','code']//data
  },
  getAdType: {//获取广告类型
    url: '/activity/adType/get',
    require: ['token', 'clientid']//id/code
  },
  updateAdType: {//更新广告类型
    url: '/activity/adType/update',
    require: ['token', 'clientid','id']//name,data,code
  },
  deleteAdType: {//删除广告类型
    url: '/activity/adType/delete',
    require: ['token', 'clientid']//id/code
  },
  getAdTypeList: {//获取广告类型列表
    url: '/activity/adType/list',
    require: ['token', 'clientid']
  },
  //广告位
  createAdPosition: {//创建广告位
    url: '/activity/lightBox/create',
    require: ['token', 'clientid','adTypeId','cId','description','position']//data
  },
  getAdPosition: {//获取广告位
    url: '/activity/lightBox/get',
    require: ['token', 'clientid']//id
  },
  updateAdPosition: {//更新广告位
    url: '/activity/lightBox/update',
    require: ['token', 'clientid','id']//description,data,enabled,position
  },
  deleteAdPosition: {//删除广告位
    url: '/activity/lightBox/delete',
    require: ['token', 'clientid']//id
  },
  getAdPositionList: {//获取广告位列表
    url: '/activity/lightBox/list',
    require: ['token', 'clientid']//page、size(选)、adTypeId(选)、clientId(选)、key(选)、enabled(选)
  },
  createAd: {//创建广告
    url: '/activity/ad/create',
    require: ['token', 'clientid','lightBoxId','departmentId','img']//description,url,data,start,end
  },
  getAd: {//获取广告
    url: '/activity/ad/get',
    require: ['token', 'clientid']//id  /activity/ad/delay
  },
  updateAd: {//更新广告
    url: '/activity/ad/update',
    require: ['token', 'clientid','id']//lightBoxId,description,url,img,enabled,data,departmentId
  },
  delayAd: {//广告延期
    url: '/activity/ad/delay',
    require: ['token', 'clientid','id','end']
  },
  deleteAd: {//删除广告
    url: '/activity/ad/delete',
    require: ['token', 'clientid']//id
  },
  getAdList: {//管理员获取广告列表
    url: '/activity/ad/listByAdmin',
    require: ['token', 'clientid']//page、size(选)、key(选)、departmentId(选，不想要传-1)、lightBoxId(选)、enabled(选)、start(选)、end(选)
  },
}
